using System;

namespace Atomic.Libraries.Jobs
{
	[Serializable]
	public class TimeOption : IJobSubmitOption
	{
		private TimeSpan time;

		public TimeOption(TimeSpan time)
		{
			if (time.Ticks < 0)
			{
				throw new ArgumentException();
			}

			this.time = time;
		}
		
		public TimeSpan Time
		{
			get
			{
				return time;
			}
		}
	}
}
